package com.example.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @application:
 * @author: LiYuhang
 * @Date: 2021/6/2 21:34
 * @version: 0.1
 * @Description :
 * @Modified By:
 */
@ConfigurationProperties(prefix = "com.example.starter.demo")
public class DemoStarterProperties {

    private String age = "223";
    private String sex = "男";
    private Boolean single =true;
    private String locationAddress = "上海浦东";
    private String hobby = "badmitation";

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Boolean getSingle() {
        return single;
    }

    public void setSingle(Boolean single) {
        this.single = single;
    }

    public String getLocationAddress() {
        return locationAddress;
    }

    public void setLocationAddress(String locationAddress) {
        this.locationAddress = locationAddress;
    }

    public String getHobby() {
        return hobby;
    }

    public void setHobby(String hobby) {
        this.hobby = hobby;
    }

    @Override
    public String toString() {
        return "DemoStarterProperties{" +
                "age='" + age + '\'' +
                ", sex='" + sex + '\'' +
                ", single=" + single +
                ", locationAddress='" + locationAddress + '\'' +
                ", hobby='" + hobby + '\'' +
                '}';
    }
}
